package com.gk.carshopsys.dao;

import com.gk.carshopsys.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmpDao {


    //批量新增员工
    public int addEmpByList(List<Emp> list);

    //查询员工总数
    public Long findempcount();

    //根据工号查询
    public List<Emp> findEmpByEmpno(String empno);

    //查询员工
    public List<Emp> findEmp(Emp emp);

    //添加员工
    public int addEmp(Emp emp);

    //删除员工
    public int delEmp(List<Integer> emp);

    //更新员工
    public int updateEmp(Emp emp);

    //根据id修改密码
    public int updatePasswordById(Emp emp);

}
